package com.qfedu.entity;

import java.util.Date;

public class RouteEntity implements java.io.Serializable{

    private int rid;//航运id
    private String rname;//航运班期名
    private String splace;//起始地点
    private String aplace;//到达地点
    private Date time;//出发日期
    private String times;//出发日期字符串
    private RouteGroupEntity rgp;
    private int rstate;// 1已停用 ，2启用


    private String voyage;//航陈
    private Float price;//价格
    private int rgid;//航运组id
    private int sid;//船id

    private int pageNum=1;
    private int pageSize=5;
    private int startindex;
    private int endindex;


    public int getRstate() {
        return rstate;
    }

    public void setRstate(int rstate) {
        this.rstate = rstate;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }


    public int getStartindex() {
        return startindex;
    }

    public void setStartindex(int startindex) {
        this.startindex = startindex;
    }

    public int getEndindex() {
        return endindex;
    }

    public void setEndindex(int endindex) {
        this.endindex = endindex;
    }

    public String getTimes() {
        return times;
    }

    public void setTimes(String times) {
        this.times = times;
    }


    public int getRid() {
        return rid;
    }

    public void setRid(int rid) {
        this.rid = rid;
    }

    public String getRname() {
        return rname;
    }

    public void setRname(String rname) {
        this.rname = rname;
    }

    public String getSplace() {
        return splace;
    }

    public void setSplace(String splace) {
        this.splace = splace;
    }

    public String getAplace() {
        return aplace;
    }

    public void setAplace(String aplace) {
        this.aplace = aplace;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getVoyage() {
        return voyage;
    }

    public void setVoyage(String voyage) {
        this.voyage = voyage;
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public int getRgid() {
        return rgid;
    }

    public void setRgid(int rgid) {
        this.rgid = rgid;
    }

    public int getSid() {
        return sid;
    }

    public void setSid(int sid) {
        this.sid = sid;
    }

    public RouteGroupEntity getRgp() {
        return rgp;
    }

    public void setRgp(RouteGroupEntity rgp) {
        this.rgp = rgp;
    }

    @Override
    public String toString() {
        return "RouteEntity{" +
                "rid=" + rid +
                ", rname='" + rname + '\'' +
                ", splace='" + splace + '\'' +
                ", aplace='" + aplace + '\'' +
                ", time=" + time +
                ", times='" + times + '\'' +
                ", rgp=" + rgp +
                ", rstate=" + rstate +
                ", pageNum=" + pageNum +
                ", pageSize=" + pageSize +
                ", startindex=" + startindex +
                ", endindex=" + endindex +
                ", voyage='" + voyage + '\'' +
                ", price=" + price +
                ", rgid=" + rgid +
                ", sid=" + sid +
                '}';
    }
}
